<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!<DOCTYPE html>

<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link href="/style/basic_layout.css" rel="stylesheet" type="text/css">
    <link href="/style/common_style.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="/js/jquery/jquery.js"></script>
    <script type="text/javascript" src="/js/plugins/artDialog/jquery.artDialog.js?skin=blue"></script>
    <script type="text/javascript" src="/js/plugins/My97DatePicker/WdatePicker.js"></script>
    <script type="text/javascript" src="/js/commonAll.js"></script>
    <title>叩丁狼教育PSS（演示版）-账户管理</title>
    <script>
        $(function () {
            $("[name=startTime]").click(function () {
                WdatePicker({
                    dateFmt:"yyyy-MM-dd",
                    maxDate:$("[name=finalTime]").val()
                });
            })
            $("[name=finalTime]").click(function () {
                WdatePicker({
                    dateFmt:"yyyy-MM-dd",
                    minDate:$("[name=startTime]").val()
                });
            })
        })

    </script>
</head>
<body>
<form id="searchForm" action=/chart/order.do method="post">
    <div id="container">
        <div class="ui_content">
            <div class="ui_text_indent">
                <div id="box_border">
                    <div id="box_top">搜索</div>
                    <div id="box_center">
                        开始时间
                        <fmt:formatDate value="${qo.beginTime}" pattern="yyyy-MM-dd" var="startTime"/>
                        <input type="text"  class="ui_input_txt02 Wdate" name="beginTime" value="${fmtBeginTime}"/>
                        结束时间
                        <fmt:formatDate value="${qo.endTime}" pattern="yyyy-MM-dd" var="finalTime"/>
                        <input type="text" class="ui_input_txt02 Wdate" name="endTime" value="${fmtEndTime}"/>
                        供应商
                        <select class="ui_select01" name="supplierId">
                            <option value="-1">请选择</option>
                            <c:forEach items="${suppliers}" var="item">
                                <option value="${item.id}" ${item.id==qo.supplierId? 'selected' : ''}>${item.name}</option>
                            </c:forEach>
                        </select>
                        品牌
                        <select class="ui_select01" name="brandId">
                            <option value="-1">请选择</option>
                            <c:forEach items="${brands}" var="item">
                                <option value="${item.id}" ${item.id==qo.brandId? 'selected' : ''}>${item.name}</option>
                            </c:forEach>
                        </select>
                        选择查询对象
                        <select class="ui_select01" name="groupBy">
                            <c:forEach items="${groupTypes}" var="item">
                                <option value="${item.key}" ${item.key == qo.groupBy? 'selected' : ''}>${item.value}</option>
                            </c:forEach>
                        </select>
                    </div>
                    <div id="box_bottom">
                        <input type="submit" value="查询" class="ui_input_btn01"/>

                    </div>
                </div>
            </div>
        </div>
        <div class="ui_content">
            <div class="ui_tb">
                <table class="table" cellspacing="0" cellpadding="0" width="100%" align="center" border="0">
                    <tr>
                        <th width="30"><input type="checkbox" id="all"/></th>
                        <th>分组类型</th>
                        <th>订货总数量</th>
                        <th>订货总金额</th>

                    </tr>
                    <tbody>
                    <c:forEach items="${datas}" var="data">
                        <tr>
                            <td><input type="checkbox" name="IDCheck" class="acb" data-eid="${data.id}"/></td>
                            <td>${data.groupType}</td>
                            <td>${data.totalNumber}</td>
                            <td>${data.totalAmount}</td>

                        </tr>
                    </c:forEach>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</form>
</body>
</html>
